<?php

namespace app\common\model;

use think\Model;


class Column extends Model
{

    

    

    // 表名
    protected $name = 'column';
    
    public function getCoverimageAttr($value, $data)
    {
        $value = $value ? $value : (isset($data['coverimage']) ? $data['coverimage'] : '');
        return $value ? [get_app_image_url($value)] : [];
    }
}
